#ifndef MESSAGETASK_H
#define MESSAGETASK_H

#include "qrunnable.h"
#include <QObject>
#include <QTcpSocket>
#include <../common/message.h>

class MessageTask :  public QRunnable//, public QObject
{
    // Q_OBJECT
private:
    QTcpSocket* tcpSocket;
    const Message* msg;

public:
    MessageTask(QTcpSocket* tcpSocket, const Message* msg);
    void run() override;
    ~MessageTask();

};

#endif // MESSAGETASK_H
